package character.ai;

import java.util.Comparator;

public class CharacterThreatComparator implements Comparator<CharacterThreat> {

    public int compare(CharacterThreat o1, CharacterThreat o2) {
        if(o1.getThreat() == o2.getThreat())
            return 0;
        else if(o1.getThreat() > o2.getThreat())
            return -1;
        else
            return 1;
    }
}
